from django.urls import re_path


from . import views
from rest_framework_jwt.views import obtain_jwt_token


urlpatterns = [
    re_path(r'^authorizations/$',obtain_jwt_token),
    re_path(r'^users/$',views.UserCreateAPIView.as_view()),
    re_path(r'^city/hotlist/$',views.HotCityListAPIView.as_view()),
    re_path(r'^enterprise/search/hotlist/$',views.HotEnterpriseListAPIView.as_view()),
    re_path(r'^recruits/search/recommend/$',views.RecommendRecruitsListAPIView.as_view()),
    re_path(r'^recruits/search/latest/$',views.LatestRecruitsListAPIView.as_view()),
    re_path(r'^spit/(?P<id>\d+)/updatethumbup/$',views.SpitThumbupAPIView.as_view()),
    re_path(r'^spit/(?P<id>\d+)/collect/$',views.SpitCollectAPIView.as_view()),
    # re_path(r'^spit/$',views.SpitListAPIView.as_view()),

]
